package com.fjh.controller.bus;

import com.fjh.common.Result;
import com.fjh.domain.BusRent;
import com.fjh.dto.RentDto;
import com.fjh.service.RentService;
import com.fjh.vo.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
  租车记录管理
 */
@RestController
@RequestMapping("/busrent")
public class RentController {

    @Autowired
    private RentService rentService;


    /**
     * 查询
     */
    @GetMapping("/findByPage.do")
    public Result findByPage(RentDto rentDto){
        PageInfo<BusRent> pageData =  rentService.findByPage(rentDto);
        return Result.ok(pageData) ;
    }
}
